import urllib.request
from typing import Any
from urllib import request
from bs4 import BeautifulSoup
html ='<div>anny老师今天声音很好听 </dic>'
url = "https://www.dbmeinv.com/?pager_offset=1"
soup = BeautifulSoup(html,'html.parser')
print(soup.div)
def crawl(url, X= none):
    headers = {User-Agent: Mozilla/5.0 (Macintosh，Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
}
    req = request.request(url,headers = headers)
    page =urllib.request.urlopen(req,timeout = 20)
    contents = page.read()
    print(contents)
    soup = BeautifulSoup(contents,'html.parser')
    my_girl = soup.find_all('img')
    for girl in my_girl:
        link = girl.get("src")
        grobal = X
        urllib.request.urlretrive(link,"images\%s.jpg",%X)
        X+= 1
        print('正在下载%s张',X)


    crawl(url)

    for page in range(1,10)
    page += 1
   url = 'https://www.dbmeinv.com/?pager_offset=%s'%page
   crawl(url)
   print("报告长官，下载完毕")